package daylight;
//字符输出流写数据的五个方法
import java.io.FileWriter;
import java.io.IOException;

public class Writer02 {
    public static void main(String[] args) throws IOException {
        FileWriter fw = new FileWriter("DAY12\\aa.txt",true);
        fw.write('s');
        char[] ch = {'a','b','c'};
        fw.write(ch,1,2);// (数组, 开始, 结束)
        //添加字符串
        fw.write("aswfdsf\r\n");
        //添加部分字符串
        fw.write("hello,javase134期",4,10);
        fw.flush();
        fw.close();
    }
}
